package com.jingsheng.jingshengcity.mvp.ui.activity.wallet;

import android.content.Intent;
import android.support.annotation.NonNull;

import com.jess.arms.base.BaseActivity;
import com.jess.arms.di.component.AppComponent;
import com.jess.arms.utils.UiUtils;
import com.jingsheng.jingshengcity.R;
import com.jingsheng.jingshengcity.di.component.DaggerWithdrawCashComponent;
import com.jingsheng.jingshengcity.di.module.WithdrawCashModule;
import com.jingsheng.jingshengcity.mvp.contract.WithdrawCashContract;
import com.jingsheng.jingshengcity.mvp.presenter.WithdrawCashPresenter;

import static com.jess.arms.utils.Preconditions.checkNotNull;

/**
 * Created by Administrator on 2017/5/13.
 */

public class WithdrawCashActivity extends BaseActivity<WithdrawCashPresenter> implements WithdrawCashContract.View {


    @Override
    public void setupActivityComponent(AppComponent appComponent) {
        DaggerWithdrawCashComponent
                .builder()
                .appComponent(appComponent)
                .withdrawCashModule(new WithdrawCashModule(this))
                .build()
                .inject(this);
    }

    @Override
    public int initView() {
        setTitle("提现");
        return R.layout.activity_withdraw_cash;
    }

    @Override
    public void initData() {

    }


    @Override
    public void showLoading() {

    }

    @Override
    public void hideLoading() {

    }

    @Override
    public void showMessage(@NonNull String message) {
        checkNotNull(message);
        UiUtils.SnackbarText(message);
    }

    @Override
    public void launchActivity(@NonNull Intent intent) {
        checkNotNull(intent);
        UiUtils.startActivity(intent);
    }

    @Override
    public void killMyself() {
        finish();
    }


}